package com.lingxu.module.info.controller;

import com.lingxu.base.common.api.vo.Result;
import com.lingxu.module.info.entity.InfoReleaseComment;
import com.lingxu.module.info.service.InfoReleaseCommentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Title: InfoReleaseCommentController
 * @Package: com.lingxu.module.info.controller
 * @Author: ysj闫世杰
 * @Email: 1105324813@qq.com
 * @Date: Created in 2023/8/10 15:06
 * @Description:
 * @Version: 1.0.0
 */
@RestController
@RequestMapping(value = "/info/comment")
public class InfoReleaseCommentController {

    @Autowired
    private InfoReleaseCommentService infoReleaseCommentService;


    //新增
    @RequestMapping(value = "/addComment")
    public Result addComment(@RequestBody InfoReleaseComment comment){
        return infoReleaseCommentService.addComment(comment);
    }


    //查询评论详情
    @RequestMapping(value = "/findCommentList")
    public Result findCommentList(String infoId){
        return infoReleaseCommentService.findCommentList(infoId);
    }
}
